﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NFine.Domain.Entity.ProductManage;

namespace NFine.Domain.Entity.ProductManage
{
   public  class ProductEntity : IEntity<ProductEntity>, ICreationAudited, IDeleteAudited, IModificationAudited
   {
       public string F_Id { get; set; }
       /// <summary>
       /// 类别ID
       /// </summary>
       public string F_TypeId { get; set; }
       /// <summary>
       /// 品牌ID
       /// </summary>
       public string F_BrandId { get; set; }
       /// <summary>
       /// 商品名称
       /// </summary>
       public string F_ProductName { get; set; }
       /// <summary>
       /// 商品编码
       /// </summary>
       public string F_ProductCode { get; set; }
       /// <summary>
       /// 商家ID sys_user
       /// </summary>
       public string F_Supplier { get; set; }
       /// <summary>
       /// 所在省
       /// </summary>
       public string F_Province { get; set; }
       /// <summary>
       /// 所在市
       /// </summary>
       public string F_City { get; set; }
       /// <summary>
       /// 描述
       /// </summary>
       public string F_Description { get; set; }
       /// <summary>
       /// 计量单位
       /// </summary>
       public string F_Unit { get; set; }
       /// <summary>
       /// 销售价
       /// </summary>
       public decimal? F_Price { get; set; }
       /// <summary>
       /// 市场价
       /// </summary>
       public decimal? F_MarketPrice { get; set; }
       /// <summary>
       /// 成本价
       /// </summary>
       public decimal? F_LowestPrice { get; set; }
       /// <summary>
       /// 库存
       /// </summary>
       public int? F_Stock { get; set; }
       /// <summary>
       /// 排序
       /// </summary>
       public int? F_SortCode { get; set; }
       /// <summary>
       /// 商品状态（0：未审核，1：审核通过）
       /// </summary>
       public int? F_SaleStatus { get; set; }
       /// <summary>
       /// 主图
       /// </summary>
       public string F_ImageUrl { get; set; }
       /// <summary>
       /// 缩略图
       /// </summary>
       public string F_ThumbnailUrl { get; set; }
       /// <summary>
       /// 访问次数
       /// </summary>
       public int? F_VisitCounts { get; set; }
       /// <summary>
       /// 销售数量
       /// </summary>
       public int? F_SaleCounts { get; set; }
       /// <summary>
       /// 删除标志
       /// </summary>
       public bool? F_DeleteMark { get; set; }
       /// <summary>
       /// 有效标志（0：无效，1：有效）（false：下架，true：上架）
       /// </summary>
       public bool? F_EnabledMark { get; set; }
       /// <summary>
       /// 创建实体的用户
       /// </summary>
       public string F_CreatorUserId { get; set; }
       /// <summary>
       /// 创建时间
       /// </summary>
       public DateTime? F_CreatorTime { get; set; }
       /// <summary>
       /// 删除实体的用户
       /// </summary>
       public string F_DeleteUserId { get; set; }

       /// <summary>
       /// 删除实体时间
       /// </summary>
       public DateTime? F_DeleteTime { get; set; }
       /// <summary>
       /// 更新实体的用户
       /// </summary>
       public string F_LastModifyUserId { get; set; }
       /// <summary>
       /// 更新时间
       /// </summary>
       public DateTime? F_LastModifyTime { get; set; }
       /// <summary>
       /// 店铺商品分类(（  格式：父级1子级）)
       /// </summary>
       public string F_ShopCategory { get; set; }
       /// <summary>
       /// 店铺商品分类ID(Shop_Category表)
       /// </summary>
       public string F_ShopCategoryPath { get; set; }

       /// <summary>
       /// 是否促销（0：不促销，1：促销）
       /// </summary>
       public bool? F_Promotion { get; set; }
       /// <summary>
       /// 促销价格
       /// </summary>
       public decimal? F_PromotionPrice { get; set; }
      /// <summary>
       /// 商品分类ID路径  ，分割
      /// </summary>
       [NotMapped]
       public string NotMapped_cate { get; set; }
       /// <summary>
       /// 商品图片(非主图） ，分割
       /// </summary>
       [NotMapped]
       public string NotMapped_Images { get; set; }
       ///// <summary>
       ///// 商品属性值集合
       ///// </summary>
       //[NotMapped]
       //public List<ProductAttributeEntity> attrList { get; set; }
       // /// <summary>
       ///// 商品属性集合
       ///// </summary>
       //[NotMapped]
       //public List<AttributeEntity> ProductattrList { get; set; }
       
       /// <summary>
       /// 商品图片url(非主图） 集合
       /// </summary>
       [NotMapped]
       public List<string> NotMapped_ImagesUrl { get; set; }
       /// <summary>
       /// 商品图片(主图）旧图片
       /// </summary>
       [NotMapped]
       public string Old_Image { get; set; }

       /// <summary>
       /// 商品规格信息个数
       /// </summary>
       [NotMapped]
       public int SkuItemCount { get; set; }
       /// <summary>
       /// 类别名称
       /// </summary>
       [NotMapped]
       public string TypeName { get; set; } 
       /// <summary>
       /// 商品分类名称
       /// </summary>
       [NotMapped]
       public string CategoryNames { get; set; }
       ///// <summary>
       ///// 所属商家
       ///// </summary>
       //[NotMapped]
       //public SuppliersEntity SupplierModel { get;set; }
       ///// <summary>
       ///// 商品规格值集合
       ///// </summary>
       //[NotMapped]
       //public List<ProductSkuItemsEntity> guigeList { get; set; }
       /// <summary>
       /// 商品规格信息
       /// </summary>
       [NotMapped]
       public string hfCurrentBaseProductSKUs { get; set; }

       /// <summary>
       /// 品牌名称
       /// </summary>
       [NotMapped]
       public string BrandName { get; set; }
       /// <summary>
       /// 商品库存
       /// </summary>
       [NotMapped]
       public int productStock { get; set; }
    }
}
